// 1. 设计 state
/*
const initialState = {
    counter: 0
};
*/

/*
 * action 类型
 */

// export const INCREASE = 'increase';
// export const DESCREASE = 'decrease';

/*
 * 其它的常量
 */


/*
 * action 创建函数
 */

/*
export function increaseAction() {
    return {
        type: INCREASE
    };
}

export function decreaseAction() {
    return {
        type: DESCREASE
    };
}

export function increaseIfOddAction() {
    return ((dispatch, getState) => {
        if (getState().counter % 2 === 0) {
            return;
        }
        dispatch(increaseAction());
    });
}

export function increaseDelayAction(delay = 1000) {
    return ((dispatch, getState) => {
        setTimeout(() => {
            dispatch(increaseAction());
        }, delay);
    });
}
*/
			